package com.etcn.modules.busi.member.dao;

import com.etcn.common.dao.ICrudDao;
import com.etcn.modules.busi.member.pojo.WmMember;


/**
 * 会员dao
 * @author guozc
 * @date 2018-03-09 08:21:55
 */
public interface IWmMemberDao extends ICrudDao<WmMember>{

	/**
	 * 根据手机号查询会员信息
	 * @param mobile 手机号码
	 * @return
	 * @throws Exception
	 */
	WmMember getByMobile(String mobile) throws Exception;
	
	/**
	 * 根据会员id查询会员信息
	 * @param memberId
	 * @return
	 * @throws Exception
	 */
	WmMember getByMemberId(String memberId) throws Exception;
	
	/**
	 * 根据会员id更新会员信息
	 * @param member
	 * @throws Exception
	 */
	void updateByMemberId(WmMember member) throws Exception;
	
	/**
	 * 支付回调更新会员信息
	 */
	void payUpdate(WmMember member) throws Exception;
	
	/**
	 * vip过期更新
	 */
	void vipExpireUpdate(WmMember member) throws Exception;
}